add_mlir_library(ByteIRTransforms
  AnchoredPipeline.cpp
  ApplyPDLPatterns.cpp
  Bufferize.cpp
  TryCatchModulePipeline.cpp
  CanonicalizeExt.cpp
  CMAE.cpp
  CondCanonicalize.cpp
  CollectFunc.cpp
  FuncTag.cpp
  GenericDeviceConfig.cpp
  GraphClusteringByDevice.cpp
  InsertUniqueId.cpp
  LoopTag.cpp
  LoopUnroll.cpp
  MemoryPlanning.cpp
  ModuleTag.cpp
  RemoveFuncBody.cpp
  RewriteOpToStdCall.cpp
  SetArgShape.cpp
  SetSpace.cpp
  ShapeFuncOutlining.cpp
  Utils.cpp

  ADDITIONAL_HEADER_DIRS
  ${BYTEIR_SRC_INCLUDE_DIR}/byteir/Transforms

  DEPENDS
  ByteIRAnalysis
  ByteIRMhloPasses
  ByteIRTensorPasses
  ByteIRTransformsPassIncGen
  ByteIRUtils
  MLIRSCFDialect

  LINK_LIBS PUBLIC
  ByteIRAnalysis
  ByteIRLinalgPasses
  ByteIRMhloPasses
  ByteIRTensorPasses
  ByteIRVectorPasses
  ByteIRUtils
  ByteIRCclPasses
  MLIRIR
  MLIRAffineDialect
  MLIRMemRefDialect
  MLIRPDLDialect
  MLIRPDLInterpDialect
  MLIRSCFDialect
  MLIRTransforms
)
